package com.ysy.controller;

import com.ysy.entity.NoteSearchReq;

import com.ysy.entity.NoteSearchResponse;
import com.ysy.persimmons.common.response.PageResponse;
import com.ysy.service.NoteSearchService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class NoteSearchController {


    @Resource
    private NoteSearchService noteSearchService;

    @PostMapping("/note/info")
    public PageResponse<NoteSearchResponse> getNoteInfos(NoteSearchReq noteSearchReq) {
        return noteSearchService.getNoteInfos(noteSearchReq);
    }

}
